<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="java.io.ByteArrayOutputStream"%>
<%@page import="java.io.PrintStream"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

Exception e = (Exception)request.getAttribute("errmsg");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>通用异常界面</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
     <table width="100%">
         <tr>
             <td colspan="2">系统出现运行错误，请与您的系统管理员（技术人员）联系，并将下列信息发送给系统管理员（技术人员）。</td>
         </tr>
         <tr>
             <td>异常信息</td>
             <td> <b><%=e.getMessage() %></b></td>
         </tr>
         <tr>
             <td colspan="2">错误堆栈</td>
         </tr>
         <tr>
             <td colspan="2">
               <% 
                   ByteArrayOutputStream  ostr = new ByteArrayOutputStream();
                   e.printStackTrace(new PrintStream(ostr));
                   out.println(ostr.toString());
               %>
             </td>
         </tr>
     </table>
  </body>
</html>
